<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>01js导入介绍</title>
    <script>
        // 内联导入
        console.log("hello world 标签内联样式 head");
        alert("hello world 标签内联样式 head");
    </script>
    <script src="/js/myscript.js"></script>
</head>
<body>
    <h1>js导入介绍</h1>
    <h2>js导入方式和CSS一样</h2>   
   

            
<script>
    // 内联导入
    console.log("hello world 标签内联样式 body");
    alert("hello world 标签内联样式 body");
</script>

</body>
</html>